<?php

namespace Database\Seeders;

use App\Models\AdminUser;

use Hash;
use Illuminate\Database\Seeder;

class AdminUsersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //插入初始化账号
        AdminUser::create([
            'username'=> 'admin',
            'password'=> Hash::make('admin'),
            'state'   => AdminUser::NORMAL
        ]);
    }
}
